(function($,jendela,dokumen){
	
    var validasiform = {};
	
	validasiform.konfigurasi = {
        setelanValidasiForm: function(){
            //form validation rules
            $("#ss-form").validate({
                rules: {
                    'entry.0.single': {
                        required: true,
                        minlength: 4
                    },
                    'entry.1.single': {
                        required: true,
                        email: true
                    },
                    'entry.2.single': {
                        required: true,
                        minlength: 5
                    },
					recaptcha_response_field: {
						required: true,
                        minlength: 4
					},
                    agree: "required"
                },
                messages: {
					'entry.0.single': "Silahkan masukan nama anda",
                    'entry.1.single': "Silahkan masukan alamat email anda",
					'entry.2.single': {
						required: "Silahkan masukan pesan yang akan disampaikan",
						minlength: "Silahkan tuliskan pesan, namun jangan SPAM!"
					},
					recaptcha_response_field: {
						required: "Silahkan masukan dua kata diatas",
						minlength: "Masukan dua kata seperti pada gambar diatas"
					},
					agree: "Jangan mengirimkan SPAM"
                },
                submitHandler: function(form) {
                    form.submit();
                }
            });
        }
    }

    //when the dom has loaded setup form validation rules
    $(dokumen).ready(function($) {
        validasiform.konfigurasi.setelanValidasiForm();
    });

})(jQuery, window, document);